module WindSpirit
{
    export class LoadingSprite extends egret.Bitmap
    {
        public constructor()
        {
            super(RES.getRes("loading_png"));
            this.show();
        }
        public show()
        {
            this.anchorX = this.anchorY = 0.5;
            this.x = WindSpirit.Util.centerX;
            this.y = WindSpirit.Util.centerY;
            this.rotate();
        }
        public rotate()
        {
            egret.Tween.get(this).to({ rotation: this.rotation + 360 },1000).call(this.rotate.bind(this));
        }
    }
}